package com.gm.dao.card;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.github.miemiedev.mybatis.paginator.domain.PageList;
import com.gm.controller.dto.CardDTO;
import com.gm.model.po.Card;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ICardDao {

    int deleteByPrimaryKey(Integer id);

    int insert(Card record);

    int insertSelective(Card record);

    Card selectByPrimaryKey(Integer id);

    List<Card> selectByNum(String num);

    int updateByPrimaryKeySelective(Card record);

    int updateByPrimaryKey(Card record);

    PageList<CardDTO> getCardList(@Param("pageBounds")PageBounds pageBounds, @Param("cid")Integer cid);

    /**
     * 获取当天账单日卡
     * @param nowDate
     * @return
     */
     List<Card> getAllCardByNow(@Param("nowDate")Integer nowDate);
}